package com.lagou.demo.dao;

import com.lagou.demo.pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Component;
/**
 * @Author : liuchangling
 * @Descrition :
 * @Date： Created in 1:59 下午 2021/10/29
 */
@Mapper
@Component
public interface UsersDao{

    /**
     * 新增
     * */
    @Insert("insert into users(username,password,address) values(#{username},#{password},#{address})")
    @Options(useGeneratedKeys = true, keyProperty = "id",keyColumn = "id")
    int insertUser(Users users);

}
